/**
 * @project readnote
 * @Title BookDAO.java
 * @author huxh
 * @date 2012-2-12
 **/
package com.readnote.book.dao;

import java.util.List;

import com.cr.backbone.hibenate.AppBaseDAO;
import com.readnote.book.model.UserBook;
import com.readnote.book.model.UserNote;
import com.readnote.user.model.User;

public interface UserNoteDAO extends AppBaseDAO<UserNote> {

//	/**
//	 * 获取单个用户书籍对象,by用户、书籍
//	 * @param book
//	 * @param user
//	 * @return
//	 */
//	public UserNote getUserNoteByBookAndUser(Book book, User user) ;
	
	
	/**
	 * 获取用户笔记集合，by用户书籍
	 * @param user
	 * @return
	 */
	public List<UserNote> getListUserNoteByUserBook(UserBook userBook);

	public List<UserNote> getListUserNoteByUser(User user);

	/**
	 * 获取用户最后添加笔记
	 * @param user
	 * @return
	 * @author huxh
	 * @date 2012-7-5 
	 */
	public UserNote getUserNoteTopOneByUser(User user);

	
	
}
